package com.mit.web.vo.sys
{
	import com.mit.web.config.Constants;
	import com.mit.web.vo.BaseVO;
	import com.mit.web.vo.maintenance.EmployeeVO;
	
	import mx.collections.ArrayCollection;
	
	[Bindable]
	[RemoteClass(alias="com.mit.common.security.dto.UserDTO")]
	public class UserVO extends BaseVO
	{
		public var username:String;
		public var password:String;
		public var activeInd:String;
		public var adminInd:String;
		public var loginTime:Date;
		public var ip:String;
		public var functionIds:ArrayCollection;
		public var employee:EmployeeVO;
		
		public function UserVO()
		{
			super();
			functionIds = new ArrayCollection();
			employee = new EmployeeVO();
		}
		
		public function get active():Boolean{
			return activeInd == Constants.YES;
		}
	}
}